package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 凭证列表对象 iae_voucher
 * 
 * @author ruoyi
 * @date 2025-03-01
 */
public class IaeVoucher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 凭证iD */
    private Long id;

    /** 凭证摘要 */
    @Excel(name = "凭证摘要")
    private String voucherAbstract;

    /** 科目ID */
    @Excel(name = "科目ID")
    private Long accountId;

    /** 借方金额 */
    @Excel(name = "借方金额")
    private String debitAmount;

    /** 贷方金额 */
    @Excel(name = "贷方金额")
    private String creditAmount;

    /** 凭证日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "凭证日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date voucherDate;

    /** 凭证字id */
    @Excel(name = "凭证字id")
    private Long voucherWordId;

    private Integer transferId;

    public Integer getTransferId() {
        return transferId;
    }

    public void setTransferId(Integer transferId) {
        this.transferId = transferId;
    }

    /** 内部转账记录信息 */
    private List<IaeInternalTransfer> iaeInternalTransferList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVoucherAbstract(String voucherAbstract) 
    {
        this.voucherAbstract = voucherAbstract;
    }

    public String getVoucherAbstract() 
    {
        return voucherAbstract;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setDebitAmount(String debitAmount) 
    {
        this.debitAmount = debitAmount;
    }

    public String getDebitAmount() 
    {
        return debitAmount;
    }
    public void setCreditAmount(String creditAmount) 
    {
        this.creditAmount = creditAmount;
    }

    public String getCreditAmount() 
    {
        return creditAmount;
    }
    public void setVoucherDate(Date voucherDate) 
    {
        this.voucherDate = voucherDate;
    }

    public Date getVoucherDate() 
    {
        return voucherDate;
    }
    public void setVoucherWordId(Long voucherWordId) 
    {
        this.voucherWordId = voucherWordId;
    }

    public Long getVoucherWordId() 
    {
        return voucherWordId;
    }

    public List<IaeInternalTransfer> getIaeInternalTransferList()
    {
        return iaeInternalTransferList;
    }

    public void setIaeInternalTransferList(List<IaeInternalTransfer> iaeInternalTransferList)
    {
        this.iaeInternalTransferList = iaeInternalTransferList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("voucherAbstract", getVoucherAbstract())
            .append("accountId", getAccountId())
            .append("debitAmount", getDebitAmount())
            .append("creditAmount", getCreditAmount())
            .append("voucherDate", getVoucherDate())
            .append("voucherWordId", getVoucherWordId())
            .append("transferId", getTransferId())
            .append("", getIaeInternalTransferList())
            .toString();
    }
}
